module Base
{
	model fhq91CutlassCruiser_Body
	{
		mesh = vehicles/vehicle_fhq91cutlasscruiser|fhq91CutlassCruiser,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhq91CutlassCruiser_TrunkLid
	{
		mesh = vehicles/vehicle_fhq91cutlasscruiser|fhq91CutlassCruiser_Trunk,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhq91CutlassCruiser_DoorL
	{
		mesh = vehicles/vehicle_fhq91cutlasscruiser|fhq91CutlassCruiser_DoorL,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhq91CutlassCruiser_DoorR
	{
		mesh = vehicles/vehicle_fhq91cutlasscruiser|fhq91CutlassCruiser_DoorR,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	template vehicle fhq91CutlassCruiser
    {
        mechanicType = 1,
        offRoadEfficiency = 0.7,
        engineRepairLevel = 4,
        playerDamageProtection = 0.8,
        engineRPMType = firebird,

        model
        {
            file = fhq91CutlassCruiser_Body,
            scale = 1.8200,
            offset = 0.0000 -0.0549 0.0165,
        }

        spawnOffsetY = 0.12999995,

        textureMask = Vehicles/vehicle_fhq91CutlassCruiser_mask,
        textureLights = Vehicles/vehicle_fhq91CutlassCruiser_lights,
        textureDamage1Overlay = Vehicles/Veh_Blood_Mask,
        textureDamage2Overlay = Vehicles/Veh_Blood_Hvy,
        textureDamage1Shell = Vehicles/Veh_Damage1,
        textureDamage2Shell = Vehicles/Veh_Damage2,
        textureRust = Vehicles/Veh_Rust,

        sound
        {
            engine = VehicleEngineCarNormal,
            engineStart = VehicleEngineCarNormal,
            engineTurnOff = VehicleEngineCarNormal,
            horn = VehicleHornStandard,
            ignitionFail = VehicleIgnitionFailCarNormal,
        }

        extents = 0.8022 0.5165 2.2967,
        mass = 700,
        physicsChassisShape = 0.8022 0.5165 2.2967,
        centerOfMassOffset = 0.0000 0.2418 -0.0165,
        shadowExtents = 0.7688 2.3132,
        shadowOffset = 0.0000 -0.0440,
        engineForce = 3150,
        engineLoudness = 60,
        engineQuality = 80,
        maxSpeed = 80f,
        gearRatioCount = 3,
        stoppingMovementForce = 4.0f,
        rollInfluence = 0.7f,
        steeringIncrement = 0.04,
        steeringClamp = 0.3,
        suspensionStiffness = 45,
        suspensionCompression = 3.83,
        suspensionDamping = 2.88,
        maxSuspensionTravelCm = 15,
        suspensionRestLength = 0.2f,
        wheelFriction = 1.8f,
        frontEndHealth = 150,
        rearEndHealth = 150,
        seats = 4,

        wheel FrontLeft
        {
            front = true,
            offset = 0.3462 0.0165 0.6374,
            radius = 0.14f,
            width = 0.29f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.3462 0.0165 0.6374,
            radius = 0.14f,
            width = 0.29f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.3462 0.0165 -0.6429,
            radius = 0.14f,
            width = 0.29f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.3462 0.0165 -0.6429,
            radius = 0.14f,
            width = 0.29f,
        }

        template = PassengerSeat4,

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.1429 0.1813 0.0495,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.5000 -0.1484 -0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.1429 0.1813 0.0495,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5000 -0.1484 -0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }
		
		passenger RearLeft
        {
            position inside
            {
                offset = 0.1429 0.1813 0.0495,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.5000 -0.1484 -0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearLeft,
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.1429 0.1813 0.0495,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5000 -0.1484 -0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }
        }

        area Engine
        {
            xywh = 0.0000 1.1978 0.7473 0.4396,
        }

       area TruckBed
        {
            xywh = 0.0000 -1.1209 0.7473 0.4066,
        }

        area SeatFrontLeft
        {
            xywh = 0.6319 0.0989 0.5165 0.5165,
        }

        area SeatFrontRight
        {
            xywh = -0.6319 0.0989 0.5165 0.5165,
        }
		
		area SeatRearLeft
        {
            xywh = 0.6319 0.0989 0.5165 0.5165,
        }

        area SeatRearRight
        {
            xywh = -0.6319 0.0989 0.5165 0.5165,
        }

        area GasTank
        {
            xywh = -0.6264 -0.5385 0.5055 0.5055,
        }

        area TireFrontLeft
        {
            xywh = 0.6319 0.5989 0.5165 0.5165,
        }

        area TireFrontRight
        {
            xywh = -0.6319 0.5989 0.5165 0.5165,
        }

        area TireRearLeft
        {
            xywh = 0.6319 -0.5549 0.5165 0.5165,
        }

        area TireRearRight
        {
            xywh = -0.6319 -0.5549 0.5165 0.5165,
        }

		template = TrunkDoor,
		
		part TrunkDoor
		{
			table uninstall
			{
				requireUninstalled = WindshieldRear,
			}
		}
		
        template = Trunk/part/TruckBed,

        part TruckBed
        {
            container
            {
                capacity = 60,
                test = Vehicles.ContainerAccess.TruckBedOpenInside,
            }
        }

        template = Seat/part/SeatFrontLeft,
        template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
        template = Seat/part/SeatRearRight,
        template = GloveBox,
		
		part GloveBox
        {
            container
            {
                capacity = 5,
            }
        }

        template = GasTank,
		
		part GasTank
        {
            table install
            {
                skills = Mechanics:6,
            }
            table uninstall
            {
                skills = Mechanics:6,
            }
        }
		
        template = Battery,
        template = Engine,
        template = Muffler,
        template = EngineDoor,

        part Heater
        {
            category = engine,

            lua
            {
                update = Vehicles.Update.Heater,
            }
        }

        part PassengerCompartment
        {
            category = nodisplay,

            lua
            {
                update = Vehicles.Update.PassengerCompartment,
            }
        }

        template = Windshield/part/Windshield,
        template = Windshield/part/WindshieldRear,
		
		part WindshieldRear
		{
			table install
			{
				requireInstalled = TrunkDoor,
			}
			
			model Default
            {
                file = fhq91CutlassCruiser_TrunkLid,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
		}
		
        template = Window/part/WindowFrontLeft,
        template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearLeft,
        template = Window/part/WindowRearRight,

        part WindshieldRear
        {
            requireInstalled = TrunkDoor,
        }

        template = Door/part/DoorFrontLeft,

        part DoorFrontLeft
        {
            model Default
            {
                file = fhq91CutlassCruiser_DoorL,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Door/part/DoorFrontRight,

        part DoorFrontRight
        {
            model Default
            {
                file = fhq91CutlassCruiser_DoorR,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }
		
		template = Door/part/DoorRearLeft,
        template = Door/part/DoorRearRight,

        template = Tire,

        part TireFrontLeft
        {
            model InflatedTirePlusWheel
            {
                file = fhqMZWheelSteelie14Left,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
				scale = 1.05,
            }
        }

        part TireFrontRight
        {
            model InflatedTirePlusWheel
            {
                file = fhqMZWheelSteelie14Right,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
				scale = 1.05,
            }
        }

        part TireRearLeft
        {
            model InflatedTirePlusWheel
            {
                file = fhqMZWheelSteelie14Left,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
				scale = 1.05,
            }
        }

        part TireRearRight
        {
            model InflatedTirePlusWheel
            {
                file = fhqMZWheelSteelie14Right,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
				scale = 1.05,
            }
        }

        template = Brake,
        template = Suspension,
        template = Radio,
        template = Headlight,
		
        useChassisPhysicsCollision = false,

        attachment trailer
        {
            offset = 0.0000 0.1339 -0.9418,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 0.1220 0.9598,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
	vehicle fhq91CutlassCruiser
    {
        template! = fhq91CutlassCruiser,

        skin
        {
            texture = Vehicles/vehicle_fhq91CutlassCruiser_shell,
        }

        wheel FrontLeft
        {
            front = true,
            offset = 0.3462 0.0165 0.6374,
            radius = 0.14f,
            width = 0.29f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.3462 0.0165 0.6374,
            radius = 0.14f,
            width = 0.29f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.3462 0.0165 -0.6429,
            radius = 0.14f,
            width = 0.29f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.3462 0.0165 -0.6429,
            radius = 0.14f,
            width = 0.29f,
        }

        area Engine
        {
            xywh = 0.0000 1.1978 0.7473 0.4396,
        }

        area TruckBed
        {
            xywh = 0.0000 -1.1209 0.7473 0.4066,
        }

        area SeatFrontLeft
        {
            xywh = 0.6319 0.0989 0.5165 0.5165,
        }

        area SeatFrontRight
        {
            xywh = -0.6319 0.0989 0.5165 0.5165,
        }

        area GasTank
        {
            xywh = 0.6264 -0.5385 0.5055 0.5055,
        }

        area TireFrontLeft
        {
            xywh = 0.6319 0.5989 0.5165 0.5165,
        }

        area TireFrontRight
        {
            xywh = -0.6319 0.5989 0.5165 0.5165,
        }

        area TireRearLeft
        {
            xywh = 0.6319 -0.5549 0.5165 0.5165,
        }

        area TireRearRight
        {
            xywh = -0.6319 -0.5549 0.5165 0.5165,
        }

        passenger RearLeft
        {
            position inside
            {
                offset = 0.1429 0.1813 -0.3901,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.5000 -0.1484 -0.4396,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearLeft,
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.1429 0.1813 -0.3901,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5000 -0.1484 -0.4396,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }
        }

        physics box
        {
            offset = 0.0000 0.0959 -0.0110,
            extents = 0.7802 0.2198 2.1978,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.2962 0.2473,
            extents = 0.7253 0.3846 0.2198,
            rotate = -58.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3516 -0.3597,
            extents = 0.7033 0.2747 1.0000,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.2198 0.7511,
            extents = 0.7253 0.1099 0.6703,
            rotate = 7.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3187 -0.9313,
            extents = 0.7033 0.3077 0.1978,
            rotate = 55.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.1923 -0.3238,
            extents = 0.7802 0.2088 1.5714,
            rotate = 0.0000 0.0000 0.0000,
        }

        extents = 0.8022 0.5165 2.2967,
        physicsChassisShape = 0.8022 0.5165 2.2967,
        centerOfMassOffset = 0.0000 0.2418 -0.0165,
        shadowExtents = 0.8237 2.3846,
        shadowOffset = 0.0000 -0.0195,

        attachment trailer
        {
            offset = 0.0000 0.1339 -0.9418,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 0.1220 0.9598,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
